//
//  YSTitleView.h
//  YSPageViewExample_OC
//
//  Created by MOLBASE on 2017/12/5.
//  Copyright © 2017年 YangShen. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YSPageStyle, YSTitleView;

@protocol YSTitleViewDelegate
- (void)titleView:(YSTitleView *)titleView targetIndex:(NSInteger)targetIndex;
@end

@interface YSTitleView : UIView
@property (nonatomic, weak) id <YSTitleViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray<NSString *> *)titleArray style:(YSPageStyle *)style;

@end
